package com.itfreer.bpm.timeliness.service;
/**
 * 项目办理状态
 * @author gj
 *
 */
public class ProcessStatusType {
	
	private static final String OnHanding="0";
	private static final String Finished="1";
	
	private static final String Disposal="2";
	private static final String Suspend="3";
	/**
	 * 在办
	 * @return
	 */
	public static String getOnHandingType() {
		return OnHanding;
	}
	
	/**
	 * 办结项目
	 * @return
	 */
	public static String getFinishedType() {
		return Finished;
	}
	
	/**
	 * 退件
	 * @return
	 */
	public static String getDisposalType() {
		return Disposal;
	}
	
	/**
	 * 挂起
	 * @return
	 */
	public static String getSuspendType() {
		return Suspend;
	}
	
	/**
	 * 是否在办
	 * @param type
	 * @return
	 */
	public static boolean isHandingType(String type) {
		return OnHanding.equals(type);
	}
	
	/**
	 * 是否办结
	 * @param type
	 * @return
	 */
	public static boolean isFinishedType(String type) {
		return Finished.equals(type);
	}
	
	/**
	 * 是否退件
	 * @param type
	 * @return
	 */
	public static boolean isDisposalType(String type) {
		return Disposal.equals(type);
	}
	
	/**
	 * 是否挂起
	 * @param type
	 * @return
	 */
	public static boolean isSuspendType(String type) {
		return Suspend.equals(type);
	}
}
